#pragma once
#include "DeadlyShadowsLastHope\Entity.h"
#include "AnimationFrame.h"

#include <iostream>
#include <vector>
#include <string>
#include <Windows.h>
using std::vector;
using std::string;

class CAnimation 
{
private:
	int m_nImageID;
	int m_nAnimationID;
	int m_nNextAnimation;
	string m_strName;
	string m_strNext;
	bool m_bPlaying;
	bool m_bLooping;
	int m_nFrameCount;

public:
	vector<CAnimationFrame*> m_vFrames;


	CAnimation(void);
	~CAnimation(void);

	void Update( float fElapsedTime );
	void Render( void );
	void Load(string path);

	int GetImageID(void){return m_nImageID;};
	int GetAnimationID(void) {return m_nAnimationID;};
	int GetNextAnimationID(void) {return m_nNextAnimation;};
	string GetAnimationName(void) {return m_strName;};
	string GetNextAnimationName(void){return m_strNext;};
	int GetFrameCount(void){return m_nFrameCount;};
	bool GetLooping(void){return m_bLooping;};


	void SetImageID(int id) { m_nImageID=id;}
	void SetAnimationID(int id) { m_nAnimationID=id;}
	void SetNextAnimation(int id) { m_nNextAnimation=id;}
	void SetName(string szName){m_strName=szName;};
	void SetNextAnimationName(string value){ m_strNext=value;};
	void SetFrameCount(int count){m_nFrameCount=count;};
	void SetLooping(bool set){m_bLooping=set;};



};

